package com.code.fegin;

import com.code.factory.ProviderClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : ProviderClient
 * @description : [描述说明该类的功能]
 * @createTime : [2022/9/16 15:43]
 * @updateUser : [mxf]
 * @updateTime : [2022/9/16 15:43]
 * @updateRemark : [描述说明本次修改内容]
 */
@FeignClient(name = "nacos-provider",fallbackFactory = ProviderClientFallbackFactory.class)
public interface ProviderClient {

    @GetMapping("hi/{id}")
    public String hi(@PathVariable("id") int id);
}
